package com.xiaoze.question.domain;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

import com.xiaoze.common.annotation.Excel;
import com.xiaoze.common.core.domain.BaseEntity;

/**
 * 试题题目管理对象 question_items
 *
 * @author 胡昊泽
 * @date 2024-08-02
 */
@Data
@TableName("question_items" )
public class QuestionItems extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    //添加
    @TableId(value = "id" , type = IdType.AUTO)
    private Long id;

    /**
     * 业务场景编号
     */
    @Excel(name = "业务场景编号" )
    private String categoryId;

    /**
     * 试题id
     */
    @Excel(name = "试题id" )
    private String questionId;

    /**
     * 试题类型：1 问答题， 2 单选，3 多选，4 判断，5 评分（打星）
     */
    @Excel(name = "试题类型：1 问答题， 2 单选，3 多选，4 判断，5 评分" , readConverterExp = "打星" )
    private String questionType;

    /**
     * 标题
     */
    @Excel(name = "标题" )
    private String questionName;

    /**
     * 唯一标识
     */
    @Excel(name = "唯一标识" )
    private String unCode;

    /**
     * 排序号
     */
    @Excel(name = "排序号" )
    private Long sortNo;

    /**
     * 题目价值
     */
    @Excel(name = "题目价值" )
    private BigDecimal questionValue;

    @TableField(exist = false)
    private List<QuestionAnswer> questionAnswerList;
}

